package com.workerhelping.enums;

public enum PoliticsStatusEnum {
    PARTYMEMBER(0, "中共党员"),
    PROBATIONARYPARTYMEMBERS(1, "中共预备党员"),
    LEAGUEMEMBER(2, "共青团员"),
    NATIONAL(3, "民革会员"),
    DEMOCRATIC(4, "民盟盟员"),
    CONSTRUCTION(5, "民建会员"),
    DEMOCRACY(6, "民进会员"),
    PEASANT(7, "农工党党员"),
    COMMUNIST(8, "致公党党员"),
    GAKUSHA(9, "九三学社社员"),
    TAIWAN(10, "台盟盟员"),
    NONE(11, "无党派人士"),
    MASSES(12, "群众");
    private final String status;

    PoliticsStatusEnum(Integer code, String status) {
        this.status = status;
    }

    public static String getStatusName(Integer code) {
        if (code == 0)
            return PARTYMEMBER.status;
        else if (code == 1)
            return PROBATIONARYPARTYMEMBERS.status;
        else if (code == 2)
            return LEAGUEMEMBER.status;
        else if (code == 3)
            return MASSES.status;
        else if (code == 4)
            return DEMOCRATIC.status;
        else if (code == 5)
            return CONSTRUCTION.status;
        else if (code == 6)
            return DEMOCRACY.status;
        else if (code == 7)
            return PEASANT.status;
        else if (code == 8)
            return COMMUNIST.status;
        else if (code == 9)
            return GAKUSHA.status;
        else if (code == 10)
            return TAIWAN.status;
        else if (code == 11)
            return NONE.status;
        else if (code == 12)
            return MASSES.status;
        else return null;
    }
}
